<?php $header=$this->action('ZfcAdmin\Controller\AdminController', 'headerAction');
	  $baseUrl = $header->headerarray['baseUrl'];
?>
<div class="main_title">
<div class="container">
	<h2>Change Password</h2>
</div>
</div>
<?php if(isset($_SESSION['user'])){?>
<div class="container">
	<div class="row">
	<div class="span3">
		<div class="sub_header_left">
			<ul>
				<li>My Account</li>
			<?php if(isset($_SESSION['user'])){ ?>
			<li>
				<a href="<? echo $baseUrl;?>users/edit-user?user_id=<?php if(isset($_SESSION['user']['user_id'])){echo $_SESSION['user']['user_id'];}else{} ?>">Profile</a>
			</li>
			<li>
				<a href="<? echo $baseUrl;?>users/change-password">Change Password</a>
			</li>
			<?if($_SESSION['user']['user_type']=="user"){?>
			<li>
				<a href="<? echo $baseUrl;?>users/userorderview">Your Orders</a>
			</li>
			<? }else{?>
			<li><a href="<? echo $baseUrl;?>users/order-view">Online-Orders</a></li>
			<li><a href="<? echo $baseUrl;?>users/offline-order">Offline-orders</a></li>
			<?}?>
			<?php }?>
			<li><a href="#">Help Center</a></li>
			</ul>
		</div>
	</div>
	<div class="span9">
	<div class="well min_height">
		<div class="inner_title">
				<h3>Change Password</h3>
		</div>
		<form class="form-horizontal" id="changePwdForm" name="changePwdForm" method="POST">
			<div class="control-group">
				<label class="control-label" for="inputPassword">Old Password</label>
				<div class="controls">
					<input type="password" name="oldpwd" id="oldpwd" placeholder="Enter Old Password">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">New Password</label>
				<div class="controls">
					<input type="password" name="newpwd" id="newpwd" placeholder="Enter New Password">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">Confirm Password</label>
				<div class="controls">
					<input type="password" name="confirm-pwd" id="confirm-pwd" placeholder="Enter Confirm Passwor">
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<button type="button" class="clf_btn" onclick="changePassword('user')">Save</button>
					<input type="hidden" id="hid_user_id" name="hid_user_id" value="<?php if(isset($_SESSION['user']['user_id'])){echo $_SESSION['user']['user_id'];}else{}?>">
				</div>
			</div>
		</form>
	</div>
	</div>
</div>
</div>
<?php }else{?>
<script>
	window.location=BASE_URL;
</script>
<?php } ?>

